package com.mdd.front.validate.yangyangLeadingEnterprise;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;
import javax.validation.constraints.*;

@Data
@ApiModel("课程创建参数")
public class TAppCourseCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "title参数缺失")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotNull(message = "subtitle参数缺失")
    @ApiModelProperty(value = "副标题")
    private String subtitle;

    @NotNull(message = "introduce参数缺失")
    @ApiModelProperty(value = "课程文字介绍")
    private String introduce;

    @NotNull(message = "showPic参数缺失")
    @ApiModelProperty(value = "课程展示图片")
    private String showPic;

    @NotNull(message = "freeType参数缺失")
    @ApiModelProperty(value = "是否免费（1：免费；2：付费；）")
    private Integer freeType;

    @NotNull(message = "playCount参数缺失")
    @ApiModelProperty(value = "播放次数")
    private Integer playCount;

}
